const getShowConfig = require('./methods/getShowConfig.js')

App({
  onLaunch() {
    if (!wx.cloud) { 
      console.log('请使用 2.2.3 或以上的基础库以使用云能力') 
    } else { 
      wx.cloud.init()
    }
  },
  onLoad() {
  },
  onShareTimeline() {
    return {
      title: '马上召唤你的守护神，让你寄托良愿，安抚心灵，功德+1',
      imageUrl: 'https://6475-dunhuang-2guh623s2047d720-1318886299.tcb.qcloud.la/share-image.png',
      path: '/pages/index/index',
      query: 'referrer=friend'
    }
  },
  onShareAppMessage() {
    return {
      title: '马上召唤你的守护神，让你寄托良愿，安抚心灵，功德+1',
      imageUrl: 'https://6475-dunhuang-2guh623s2047d720-1318886299.tcb.qcloud.la/share-image.png',
      query: 'referrer=circle',
      path: '/pages/index/index'
    }
  },
  globalData: {
    currentGuard: getShowConfig()
  }
})
